﻿
<%@ Page Language="C#" Theme="Default" MasterPageFile="~/MasterPages/admin.master" AutoEventWireup="true"  CodeFile="KhachHangLapMayPhaMau.aspx.cs" Inherits="KhachHangLapMayPhaMau" Title="KhachHangLapMayPhaMau List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">Khach Hang Lap May Pha Mau List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="KhachHangLapMayPhaMauDataSource"
				DataKeyNames="Id"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_KhachHangLapMayPhaMau.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<asp:BoundField DataField="Id" HeaderText="Id" SortExpression="ID" ReadOnly />
				<asp:BoundField DataField="KhachHangId" HeaderText="Khach Hang Id" SortExpression="KhachHangID"  />
				<asp:BoundField DataField="LoaiMay" HeaderText="Loai May" SortExpression="LoaiMay"  />
				<asp:BoundField DataField="DoanhSoToiThieu" HeaderText="Doanh So Toi Thieu" SortExpression="DoanhSoToiThieu"  />
				<data:BoundRadioButtonField DataField="IsActive" HeaderText="Is Active" SortExpression="[IsActive]"  />
				<asp:BoundField DataField="ThoiDiemLapMay" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Thoi Diem Lap May" SortExpression="ThoiDiemLapMay"  />
				<asp:BoundField DataField="GhiChu" HeaderText="Ghi Chu" SortExpression="GhiChu"  />
				<asp:BoundField DataField="UpdateDate" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Update Date" SortExpression="UpdateDate"  />
				<asp:BoundField DataField="UpdatedBy" HeaderText="Updated By" SortExpression="UpdatedBy"  />
				<asp:BoundField DataField="SoBienBan" HeaderText="So Bien Ban" SortExpression="SoBienBan"  />
				<asp:BoundField DataField="NgayKyBienBan" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Ngay Ky Bien Ban" SortExpression="NgayKyBienBan"  />
			</Columns>
			<EmptyDataTemplate>
				<b>No KhachHangLapMayPhaMau Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnKhachHangLapMayPhaMau" OnClientClick="javascript:location.href='KhachHangLapMayPhaMauEdit.aspx'; return false;" Text="Add New"></asp:Button>
		<data:KhachHangLapMayPhaMauDataSource ID="KhachHangLapMayPhaMauDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
>			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:KhachHangLapMayPhaMauDataSource>
	    		
</asp:Content>



